.class public Lcom/instagram/android/feed/a/a;
.super Landroid/widget/BaseAdapter;
.source "FeedAdapter.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;
.implements Lcom/instagram/android/feed/a/a/b;
.implements Lcom/instagram/android/feed/a/a/q;
.implements Lcom/instagram/android/feed/a/a/r;
.implements Lcom/instagram/android/feed/a/b/f;
.implements Lcom/instagram/android/feed/ui/k;
.implements Lcom/instagram/h/b/g;


# instance fields
.field protected a:Lcom/instagram/android/fragment/d;

.field protected b:Landroid/support/v4/app/aj;

.field protected c:Landroid/support/v4/app/r;

.field protected d:Landroid/content/Context;

.field private e:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Lcom/instagram/android/feed/a/j;",
            ">;"
        }
    .end annotation
.end field

.field private f:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Lcom/instagram/h/b/a;",
            ">;"
        }
    .end annotation
.end field

.field private final g:Lcom/instagram/android/feed/a/a/g;

.field private final h:Lcom/instagram/android/feed/a/a/h;

.field private final i:Lcom/instagram/android/feed/a/a/a;

.field private final j:Lcom/instagram/android/feed/a/a/d;

.field private final k:Lcom/instagram/android/feed/a/a/l;

.field private l:Landroid/widget/ListView;

.field private m:Lcom/instagram/android/feed/ui/StickyHeaderListView;

.field private n:I

.field private o:I

.field private p:Z

.field private q:Lcom/instagram/android/feed/a/g;

.field private r:Lcom/instagram/android/feed/a/f;

.field private s:Lcom/instagram/android/feed/a/b/a;

.field private t:Lcom/instagram/android/feed/a/i;

.field private u:Lcom/instagram/android/feed/a/h;

.field private v:I

.field private w:I

.field private x:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Lcom/instagram/android/fragment/d;Lcom/instagram/android/feed/a/i;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 138
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 71
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->e:Ljava/util/Set;

    .line 72
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->f:Ljava/util/Set;

    .line 83
    const/4 v0, -0x1

    iput v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    .line 108
    new-instance v0, Lcom/instagram/android/feed/a/g;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/feed/a/g;-><init>(Lcom/instagram/android/feed/a/a;Lcom/instagram/android/feed/a/b;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    .line 118
    sget-object v0, Lcom/instagram/android/feed/a/i;->a:Lcom/instagram/android/feed/a/i;

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->t:Lcom/instagram/android/feed/a/i;

    .line 122
    const/4 v0, 0x3

    iput v0, p0, Lcom/instagram/android/feed/a/a;->v:I

    .line 124
    const/4 v0, 0x0

    iput v0, p0, Lcom/instagram/android/feed/a/a;->w:I

    .line 126
    new-instance v0, Lcom/instagram/android/feed/a/b;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/a/b;-><init>(Lcom/instagram/android/feed/a/a;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    .line 139
    iput-object p1, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    .line 140
    iput-object p2, p0, Lcom/instagram/android/feed/a/a;->t:Lcom/instagram/android/feed/a/i;

    .line 141
    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->d:Landroid/content/Context;

    .line 142
    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->u()Landroid/support/v4/app/aj;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->b:Landroid/support/v4/app/aj;

    .line 143
    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->m()Landroid/support/v4/app/r;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->c:Landroid/support/v4/app/r;

    .line 146
    new-instance v0, Lcom/instagram/android/feed/a/a/g;

    invoke-static {}, Lcom/instagram/f/b/c;->a()Lcom/instagram/f/b/c;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/feed/a/a/g;-><init>(Lcom/instagram/android/feed/a/a;Lcom/instagram/f/b/c;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->g:Lcom/instagram/android/feed/a/a/g;

    .line 147
    new-instance v0, Lcom/instagram/android/feed/a/a/h;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/a/a/h;-><init>(Lcom/instagram/android/feed/a/a;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    .line 148
    new-instance v0, Lcom/instagram/android/feed/a/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/a/a/a;-><init>(Lcom/instagram/android/feed/a/a/b;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->i:Lcom/instagram/android/feed/a/a/a;

    .line 149
    new-instance v0, Lcom/instagram/android/feed/a/a/l;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    iget-object v2, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-direct {v0, v1, v2}, Lcom/instagram/android/feed/a/a/l;-><init>(Landroid/support/v4/app/Fragment;Lcom/instagram/b/d;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    .line 150
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0, p0}, Lcom/instagram/android/feed/a/a/l;->a(Lcom/instagram/android/feed/a/a/r;)V

    .line 151
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0, p0}, Lcom/instagram/android/feed/a/a/l;->a(Lcom/instagram/android/feed/a/a/q;)V

    .line 152
    new-instance v0, Lcom/instagram/android/feed/a/b/a;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-direct {v0, v1, p0}, Lcom/instagram/android/feed/a/b/a;-><init>(Lcom/instagram/android/fragment/d;Lcom/instagram/android/feed/a/b/f;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->s:Lcom/instagram/android/feed/a/b/a;

    .line 153
    new-instance v0, Lcom/instagram/android/feed/a/a/d;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->d:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/feed/a/a/d;-><init>(Lcom/instagram/android/feed/a/a;Landroid/util/DisplayMetrics;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->j:Lcom/instagram/android/feed/a/a/d;

    .line 155
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->j:Lcom/instagram/android/feed/a/a/d;

    invoke-virtual {p0, v0}, Lcom/instagram/android/feed/a/a;->registerDataSetObserver(Landroid/database/DataSetObserver;)V

    .line 156
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->j:Lcom/instagram/android/feed/a/a/d;

    new-instance v1, Lcom/instagram/android/feed/a/c;

    invoke-direct {v1, p0}, Lcom/instagram/android/feed/a/c;-><init>(Lcom/instagram/android/feed/a/a;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/a/a/d;->a(Lcom/instagram/android/feed/a/a/f;)V

    .line 190
    invoke-direct {p0}, Lcom/instagram/android/feed/a/a;->u()V

    .line 191
    return-void
.end method

.method private a(Landroid/view/View;Landroid/view/View;)Z
    .locals 6
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 472
    sget v1, Lcom/facebook/aw;->media_group:I

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    .line 474
    if-nez v1, :cond_1

    .line 481
    :cond_0
    :goto_0
    return v0

    .line 479
    :cond_1
    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v2

    int-to-double v2, v2

    const-wide v4, 0x3fe999999999999aL

    mul-double/2addr v2, v4

    double-to-int v2, v2

    .line 481
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result v3

    invoke-virtual {v1}, Landroid/view/View;->getBottom()I

    move-result v4

    add-int/2addr v3, v4

    if-le v3, v2, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v3

    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result v4

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v1

    add-int/2addr v1, v4

    sub-int v1, v3, v1

    if-le v1, v2, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/feed/a/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 54
    invoke-direct {p0}, Lcom/instagram/android/feed/a/a;->t()Z

    move-result v0

    return v0
.end method

.method static synthetic a(Lcom/instagram/android/feed/a/a;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    iput-boolean p1, p0, Lcom/instagram/android/feed/a/a;->p:Z

    return p1
.end method

.method private a(Lcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;)Z
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 486
    invoke-virtual {p1}, Lcom/instagram/j/l;->U()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p2}, Lcom/instagram/android/feed/a/b/ae;->a()Lcom/instagram/android/mediacache/i;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/mediacache/i;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/feed/a/a;)I
    .locals 1
    .parameter

    .prologue
    .line 54
    iget v0, p0, Lcom/instagram/android/feed/a/a;->v:I

    return v0
.end method

.method static synthetic c(Lcom/instagram/android/feed/a/a;)Lcom/instagram/android/feed/a/h;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->u:Lcom/instagram/android/feed/a/h;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/feed/a/a;)Lcom/instagram/android/feed/a/f;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->r:Lcom/instagram/android/feed/a/f;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/feed/a/a;)Lcom/instagram/android/feed/a/i;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->t:Lcom/instagram/android/feed/a/i;

    return-object v0
.end method

.method private g(I)V
    .locals 3
    .parameter

    .prologue
    .line 618
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->getCount()I

    move-result v0

    if-ge p1, v0, :cond_0

    if-gez p1, :cond_1

    .line 619
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Invalid position "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", size is "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->getCount()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", child count is "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->k()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", offset position is "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/a/a;->d(I)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 626
    :cond_1
    return-void
.end method

.method private h(I)Ljava/util/ArrayList;
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/j/l;",
            ">;"
        }
    .end annotation

    .prologue
    .line 870
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/a/a;->d(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/a/g;->b(I)Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method private s()V
    .locals 3

    .prologue
    .line 329
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->f:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/h/b/a;

    .line 330
    iget v2, p0, Lcom/instagram/android/feed/a/a;->w:I

    invoke-interface {v0, v2}, Lcom/instagram/h/b/a;->a(I)V

    goto :goto_0

    .line 332
    :cond_0
    return-void
.end method

.method private t()Z
    .locals 10

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 439
    invoke-static {}, Lcom/instagram/creation/video/c/b;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/instagram/android/feed/a/a;->p:Z

    if-eqz v0, :cond_1

    :cond_0
    move v0, v2

    .line 468
    :goto_0
    return v0

    .line 443
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v5

    .line 445
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->a()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 446
    invoke-virtual {v5}, Landroid/widget/AbsListView;->getChildCount()I

    move-result v6

    move v4, v2

    .line 447
    :goto_1
    if-ge v4, v6, :cond_3

    .line 448
    invoke-virtual {v5, v4}, Landroid/widget/AbsListView;->getChildAt(I)Landroid/view/View;

    move-result-object v7

    .line 449
    invoke-virtual {p0, v5, v4}, Lcom/instagram/android/feed/a/a;->a(Landroid/widget/AbsListView;I)Lcom/instagram/android/widget/ConstrainedProgressImageView;

    move-result-object v0

    .line 450
    if-eqz v0, :cond_2

    invoke-virtual {v0}, Lcom/instagram/android/widget/ConstrainedProgressImageView;->b()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 451
    sget v1, Lcom/facebook/aw;->key_list_position:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ConstrainedProgressImageView;->getTag(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    .line 452
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0, v1}, Lcom/instagram/android/feed/a/a;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/j/l;

    .line 454
    if-eqz v1, :cond_2

    invoke-virtual {v1}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v8

    sget-object v9, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v8, v9, :cond_2

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v8

    iget v9, p0, Lcom/instagram/android/feed/a/a;->n:I

    if-eq v8, v9, :cond_2

    invoke-direct {p0, v5, v7}, Lcom/instagram/android/feed/a/a;->a(Landroid/view/View;Landroid/view/View;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 459
    sget v2, Lcom/facebook/aw;->media_group:I

    invoke-virtual {v7, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/instagram/android/feed/a/b/ae;

    .line 462
    iget-object v4, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-virtual {v4, v1, v2, v0, v3}, Lcom/instagram/android/feed/a/a/l;->a(Lcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;IZ)V

    move v0, v3

    .line 463
    goto :goto_0

    .line 447
    :cond_2
    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_1

    :cond_3
    move v0, v2

    .line 468
    goto :goto_0
.end method

.method private u()V
    .locals 2

    .prologue
    .line 604
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->k()I

    move-result v0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {v1}, Lcom/instagram/android/feed/a/g;->c()I

    move-result v1

    add-int/2addr v0, v1

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/instagram/android/feed/a/a;->o:I

    .line 605
    return-void
.end method


# virtual methods
.method public X()V
    .locals 1

    .prologue
    .line 541
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->d()V

    .line 542
    return-void
.end method

.method public a(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 649
    if-nez p2, :cond_0

    .line 650
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->d:Landroid/content/Context;

    invoke-static {v0, p3}, Lcom/instagram/android/feed/a/b/o;->a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 653
    :cond_0
    iget-object v2, p0, Lcom/instagram/android/feed/a/a;->s:Lcom/instagram/android/feed/a/b/a;

    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/a/b/t;

    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/a/a;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/j/l;

    invoke-virtual {v2, v0, v1}, Lcom/instagram/android/feed/a/b/a;->a(Lcom/instagram/android/feed/a/b/t;Lcom/instagram/j/l;)V

    .line 658
    return-object p2
.end method

.method protected a(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 719
    invoke-virtual {p0, p2}, Lcom/instagram/android/feed/a/a;->getItemViewType(I)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 729
    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Unhandled view type"

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 721
    :pswitch_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->s:Lcom/instagram/android/feed/a/b/a;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/b/a;->a()Landroid/view/View;

    move-result-object v0

    .line 727
    :goto_0
    return-object v0

    .line 723
    :pswitch_1
    new-instance v0, Landroid/view/View;

    invoke-direct {v0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    goto :goto_0

    .line 725
    :pswitch_2
    iget v0, p0, Lcom/instagram/android/feed/a/a;->v:I

    invoke-static {p1, v0}, Lcom/instagram/android/feed/a/b/u;->a(Landroid/content/Context;I)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 727
    :pswitch_3
    invoke-static {p1, p3}, Lcom/instagram/android/feed/a/b/j;->a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 719
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_3
        :pswitch_1
    .end packed-switch
.end method

.method public a(Ljava/lang/String;)Landroid/view/View;
    .locals 4
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 246
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v2

    .line 247
    if-nez v2, :cond_0

    move-object v0, v1

    .line 259
    :goto_0
    return-object v0

    .line 251
    :cond_0
    const/4 v0, 0x0

    :goto_1
    invoke-virtual {v2}, Landroid/widget/ListView;->getChildCount()I

    move-result v3

    if-ge v0, v3, :cond_2

    .line 252
    invoke-virtual {p0, v2, v0}, Lcom/instagram/android/feed/a/a;->a(Landroid/widget/AbsListView;I)Lcom/instagram/android/widget/ConstrainedProgressImageView;

    move-result-object v3

    .line 253
    if-eqz v3, :cond_1

    if-eqz p1, :cond_1

    invoke-virtual {p0, v3}, Lcom/instagram/android/feed/a/a;->a(Lcom/instagram/android/widget/ConstrainedProgressImageView;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 254
    invoke-virtual {v2, v0}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 251
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    move-object v0, v1

    .line 259
    goto :goto_0
.end method

.method public a(Landroid/widget/AbsListView;I)Lcom/instagram/android/widget/ConstrainedProgressImageView;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 284
    invoke-virtual {p1, p2}, Landroid/widget/AbsListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->row_feed_photo_imageview:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/ConstrainedProgressImageView;

    return-object v0
.end method

.method public a(Lcom/instagram/android/widget/ConstrainedProgressImageView;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 280
    sget v0, Lcom/facebook/aw;->key_media_id:I

    invoke-virtual {p1, v0}, Lcom/instagram/android/widget/ConstrainedProgressImageView;->getTag(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    return-object v0
.end method

.method public a()V
    .locals 1

    .prologue
    .line 226
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->ad()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 227
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->c()V

    .line 229
    :cond_0
    return-void
.end method

.method protected a(Landroid/content/Context;Landroid/view/View;I)V
    .locals 6
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 755
    invoke-virtual {p0, p3}, Lcom/instagram/android/feed/a/a;->getItemViewType(I)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 788
    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "View type unhandled"

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 757
    :pswitch_0
    invoke-virtual {p0, p3}, Lcom/instagram/android/feed/a/a;->getItem(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/instagram/j/l;

    .line 761
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->b()I

    move-result v0

    if-ne v0, p3, :cond_0

    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->c()Lcom/instagram/j/l;

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/instagram/j/l;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 763
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->e()V

    .line 766
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->s:Lcom/instagram/android/feed/a/b/a;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {v1, v2}, Lcom/instagram/android/feed/a/a/h;->a(Lcom/instagram/j/l;)Z

    move-result v4

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v1, p3, v2}, Lcom/instagram/android/feed/a/a/l;->a(ILcom/instagram/j/l;)Lcom/instagram/creation/video/ui/g;

    move-result-object v5

    move-object v1, p2

    move v3, p3

    invoke-virtual/range {v0 .. v5}, Lcom/instagram/android/feed/a/b/a;->a(Landroid/view/View;Lcom/instagram/j/l;IZLcom/instagram/creation/video/ui/g;)V

    .line 791
    :goto_0
    :pswitch_1
    return-void

    .line 775
    :pswitch_2
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/a/b/y;

    invoke-direct {p0, p3}, Lcom/instagram/android/feed/a/a;->h(I)Ljava/util/ArrayList;

    move-result-object v4

    if-nez p3, :cond_1

    move v1, v2

    :goto_1
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->getCount()I

    move-result v5

    add-int/lit8 v5, v5, -0x2

    if-ne p3, v5, :cond_2

    :goto_2
    invoke-static {v0, v4, v1, v2}, Lcom/instagram/android/feed/a/b/u;->a(Lcom/instagram/android/feed/a/b/y;Ljava/util/ArrayList;ZZ)V

    goto :goto_0

    :cond_1
    move v1, v3

    goto :goto_1

    :cond_2
    move v2, v3

    goto :goto_2

    .line 783
    :pswitch_3
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/a/b/k;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-static {v0, v1}, Lcom/instagram/android/feed/a/b/j;->a(Lcom/instagram/android/feed/a/b/k;Lcom/instagram/android/widget/v;)V

    goto :goto_0

    .line 755
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_3
        :pswitch_1
    .end packed-switch
.end method

.method public a(Landroid/graphics/Bitmap;Lcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 735
    if-eqz p1, :cond_1

    .line 736
    invoke-virtual {p2}, Lcom/instagram/j/l;->U()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 737
    invoke-virtual {p3}, Lcom/instagram/android/feed/a/b/ae;->c()Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 739
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {v0, p2}, Lcom/instagram/android/feed/a/a/h;->a(Lcom/instagram/j/l;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->o()Lcom/instagram/android/feed/a/i;

    move-result-object v0

    sget-object v1, Lcom/instagram/android/feed/a/i;->a:Lcom/instagram/android/feed/a/i;

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->l()I

    move-result v0

    if-nez v0, :cond_0

    .line 742
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {p2}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/a/a/h;->a(Ljava/lang/String;)V

    .line 747
    :cond_0
    invoke-virtual {p2}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->ac()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 748
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->j()V

    .line 751
    :cond_1
    return-void
.end method

.method public a(Lcom/instagram/android/feed/a/f;)V
    .locals 0
    .parameter

    .prologue
    .line 811
    iput-object p1, p0, Lcom/instagram/android/feed/a/a;->r:Lcom/instagram/android/feed/a/f;

    .line 812
    return-void
.end method

.method public a(Lcom/instagram/android/feed/a/h;)V
    .locals 0
    .parameter

    .prologue
    .line 832
    iput-object p1, p0, Lcom/instagram/android/feed/a/a;->u:Lcom/instagram/android/feed/a/h;

    .line 833
    return-void
.end method

.method public a(Lcom/instagram/android/feed/a/j;)V
    .locals 1
    .parameter

    .prologue
    .line 802
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->e:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 803
    return-void
.end method

.method public a(Lcom/instagram/h/b/a;)V
    .locals 1
    .parameter

    .prologue
    .line 336
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->f:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 337
    iget v0, p0, Lcom/instagram/android/feed/a/a;->w:I

    invoke-interface {p1, v0}, Lcom/instagram/h/b/a;->b(I)V

    .line 338
    return-void
.end method

.method public a(Lcom/instagram/j/l;)V
    .locals 1
    .parameter

    .prologue
    .line 841
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/instagram/android/feed/a/a;->a(Lcom/instagram/j/l;Z)V

    .line 842
    return-void
.end method

.method public a(Lcom/instagram/j/l;I)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 564
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->d:Landroid/content/Context;

    invoke-static {v0}, Lcom/instagram/creation/video/c/b;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 565
    add-int/lit8 v0, p2, 0x1

    move v1, v0

    :goto_0
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->getCount()I

    move-result v0

    if-ge v1, v0, :cond_0

    add-int/lit8 v0, p2, 0x15

    if-ge v1, v0, :cond_0

    .line 566
    invoke-virtual {p0, v1}, Lcom/instagram/android/feed/a/a;->getItemViewType(I)I

    move-result v0

    if-nez v0, :cond_1

    .line 567
    invoke-virtual {p0, v1}, Lcom/instagram/android/feed/a/a;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/l;

    .line 568
    invoke-virtual {v0}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v2

    sget-object v3, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v2, v3, :cond_1

    .line 569
    invoke-static {}, Lcom/instagram/android/mediacache/n;->a()Lcom/instagram/android/mediacache/n;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/j/l;->s()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/android/mediacache/n;->a(Landroid/net/Uri;)V

    .line 575
    :cond_0
    return-void

    .line 565
    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public a(Lcom/instagram/j/l;ILcom/instagram/android/feed/a/b/ae;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 491
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->j()Landroid/support/v4/app/j;

    move-result-object v0

    if-nez v0, :cond_1

    .line 504
    :cond_0
    :goto_0
    return-void

    .line 496
    :cond_1
    invoke-virtual {p1}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->a:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_2

    .line 497
    invoke-direct {p0, p1, p3}, Lcom/instagram/android/feed/a/a;->a(Lcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 498
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {p3}, Lcom/instagram/android/feed/a/b/ae;->b()Lcom/instagram/android/people/widget/PeopleTagsLayout;

    move-result-object v1

    invoke-virtual {p3}, Lcom/instagram/android/feed/a/b/ae;->c()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, p1, v1, v2}, Lcom/instagram/android/feed/a/a/h;->a(Lcom/instagram/j/l;Lcom/instagram/android/people/widget/PeopleTagsLayout;Landroid/view/View;)V

    goto :goto_0

    .line 502
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0, p2, p1, p3}, Lcom/instagram/android/feed/a/a/l;->a(ILcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;)V

    goto :goto_0
.end method

.method public a(Lcom/instagram/j/l;Landroid/view/View;I)V
    .locals 7
    .parameter
    .parameter
    .parameter

    .prologue
    .line 546
    new-instance v0, Lcom/instagram/android/feed/a/a/x;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    iget-object v2, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    move-object v3, p0

    move-object v4, p2

    move-object v5, p1

    move v6, p3

    invoke-direct/range {v0 .. v6}, Lcom/instagram/android/feed/a/a/x;-><init>(Landroid/support/v4/app/Fragment;Lcom/instagram/b/d;Lcom/instagram/android/feed/a/a;Landroid/view/View;Lcom/instagram/j/l;I)V

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/x;->a()V

    .line 554
    return-void
.end method

.method public a(Lcom/instagram/j/l;Z)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 845
    if-nez p1, :cond_0

    .line 858
    :goto_0
    return-void

    .line 849
    :cond_0
    if-eqz p2, :cond_1

    invoke-virtual {p1}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v1, :cond_1

    .line 851
    const/4 v0, 0x0

    iput v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    .line 854
    :cond_1
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 855
    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 857
    invoke-virtual {p0, v0, p2}, Lcom/instagram/android/feed/a/a;->a(Ljava/util/ArrayList;Z)V

    goto :goto_0
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/j/l;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 836
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/g;->b()V

    .line 837
    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/a/a;->b(Ljava/util/ArrayList;)V

    .line 838
    return-void
.end method

.method public a(Ljava/util/ArrayList;Z)V
    .locals 1
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/j/l;",
            ">;Z)V"
        }
    .end annotation

    .prologue
    .line 865
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {v0, p1, p2}, Lcom/instagram/android/feed/a/g;->a(Ljava/util/ArrayList;Z)V

    .line 866
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->notifyDataSetChanged()V

    .line 867
    return-void
.end method

.method public a(I)Z
    .locals 1
    .parameter

    .prologue
    .line 214
    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/a/a;->getItemViewType(I)I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public areAllItemsEnabled()Z
    .locals 1

    .prologue
    .line 816
    const/4 v0, 0x0

    return v0
.end method

.method public b()I
    .locals 2

    .prologue
    .line 219
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->o()Lcom/instagram/android/feed/a/i;

    move-result-object v0

    sget-object v1, Lcom/instagram/android/feed/a/i;->a:Lcom/instagram/android/feed/a/i;

    if-ne v0, v1, :cond_0

    const/4 v0, 0x3

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x6

    goto :goto_0
.end method

.method public b(I)Landroid/view/View;
    .locals 5
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 263
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v3

    .line 264
    if-nez v3, :cond_0

    move-object v0, v2

    .line 276
    :goto_0
    return-object v0

    .line 268
    :cond_0
    const/4 v0, 0x0

    move v1, v0

    :goto_1
    invoke-virtual {v3}, Landroid/widget/ListView;->getChildCount()I

    move-result v0

    if-ge v1, v0, :cond_2

    .line 269
    invoke-virtual {p0, v3, v1}, Lcom/instagram/android/feed/a/a;->a(Landroid/widget/AbsListView;I)Lcom/instagram/android/widget/ConstrainedProgressImageView;

    move-result-object v0

    .line 270
    if-eqz v0, :cond_1

    sget v4, Lcom/facebook/aw;->key_list_position:I

    invoke-virtual {v0, v4}, Lcom/instagram/android/widget/ConstrainedProgressImageView;->getTag(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne v0, p1, :cond_1

    .line 271
    invoke-virtual {v3, v1}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 268
    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_2
    move-object v0, v2

    .line 276
    goto :goto_0
.end method

.method public b(Lcom/instagram/h/b/a;)V
    .locals 1
    .parameter

    .prologue
    .line 342
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->f:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 343
    return-void
.end method

.method public b(Lcom/instagram/j/l;ILcom/instagram/android/feed/a/b/ae;)V
    .locals 8
    .parameter
    .parameter
    .parameter

    .prologue
    .line 508
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->d:Landroid/content/Context;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->b:Landroid/support/v4/app/aj;

    sget-object v4, Lcom/instagram/j/o;->a:Lcom/instagram/j/o;

    sget-object v5, Lcom/instagram/android/model/o;->b:Lcom/instagram/android/model/o;

    iget-object v6, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    iget-object v7, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    move-object v2, p1

    move v3, p2

    invoke-static/range {v0 .. v7}, Lcom/instagram/android/feed/e/h;->a(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/l;ILcom/instagram/j/o;Lcom/instagram/android/model/o;Lcom/instagram/android/fragment/ak;Lcom/instagram/b/d;)V

    .line 519
    invoke-direct {p0, p1, p3}, Lcom/instagram/android/feed/a/a;->a(Lcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p3}, Lcom/instagram/android/feed/a/b/ae;->b()Lcom/instagram/android/people/widget/PeopleTagsLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/people/widget/PeopleTagsLayout;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 520
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {p3}, Lcom/instagram/android/feed/a/b/ae;->b()Lcom/instagram/android/people/widget/PeopleTagsLayout;

    move-result-object v1

    invoke-virtual {p3}, Lcom/instagram/android/feed/a/b/ae;->c()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, p1, v1, v2}, Lcom/instagram/android/feed/a/a/h;->a(Lcom/instagram/j/l;Lcom/instagram/android/people/widget/PeopleTagsLayout;Landroid/view/View;)V

    .line 526
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/feed/a/e;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/feed/a/e;-><init>(Lcom/instagram/android/feed/a/a;Lcom/instagram/j/l;)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 537
    return-void
.end method

.method public b(Ljava/util/ArrayList;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/j/l;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 861
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/instagram/android/feed/a/a;->a(Ljava/util/ArrayList;Z)V

    .line 862
    return-void
.end method

.method protected b(Lcom/instagram/j/l;)Z
    .locals 1
    .parameter

    .prologue
    .line 890
    invoke-virtual {p1}, Lcom/instagram/j/l;->C()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public c(I)Landroid/view/View;
    .locals 2
    .parameter

    .prologue
    .line 289
    const/4 v0, 0x0

    .line 290
    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-virtual {v1}, Lcom/instagram/android/fragment/d;->v()Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 291
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->v()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 293
    :cond_0
    return-object v0
.end method

.method public c()Lcom/instagram/android/fragment/d;
    .locals 1

    .prologue
    .line 194
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    return-object v0
.end method

.method protected d(I)I
    .locals 1
    .parameter

    .prologue
    .line 711
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->k()I

    move-result v0

    sub-int v0, p1, v0

    return v0
.end method

.method public d()V
    .locals 4

    .prologue
    .line 199
    iget-object v2, p0, Lcom/instagram/android/feed/a/a;->t:Lcom/instagram/android/feed/a/i;

    .line 200
    sget-object v0, Lcom/instagram/android/feed/a/i;->a:Lcom/instagram/android/feed/a/i;

    if-ne v2, v0, :cond_1

    sget-object v0, Lcom/instagram/android/feed/a/i;->b:Lcom/instagram/android/feed/a/i;

    move-object v1, v0

    .line 201
    :goto_0
    iput-object v1, p0, Lcom/instagram/android/feed/a/a;->t:Lcom/instagram/android/feed/a/i;

    .line 202
    sget-object v0, Lcom/instagram/android/feed/a/i;->b:Lcom/instagram/android/feed/a/i;

    if-ne v1, v0, :cond_0

    .line 203
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->e()V

    .line 205
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->e:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/a/j;

    .line 206
    invoke-interface {v0, v2, v1}, Lcom/instagram/android/feed/a/j;->a(Lcom/instagram/android/feed/a/i;Lcom/instagram/android/feed/a/i;)V

    goto :goto_1

    .line 200
    :cond_1
    sget-object v0, Lcom/instagram/android/feed/a/i;->a:Lcom/instagram/android/feed/a/i;

    move-object v1, v0

    goto :goto_0

    .line 208
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-static {v0}, Lcom/instagram/android/feed/a/g;->a(Lcom/instagram/android/feed/a/g;)V

    .line 209
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->notifyDataSetChanged()V

    .line 210
    return-void
.end method

.method public e()Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 232
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->l:Landroid/widget/ListView;

    if-nez v0, :cond_0

    .line 233
    const v0, 0x102000a

    invoke-virtual {p0, v0}, Lcom/instagram/android/feed/a/a;->c(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->l:Landroid/widget/ListView;

    .line 235
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->l:Landroid/widget/ListView;

    return-object v0
.end method

.method public e(I)Z
    .locals 1
    .parameter

    .prologue
    .line 558
    invoke-static {}, Lcom/instagram/creation/video/c/b;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    if-eq p1, v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected f(I)I
    .locals 1
    .parameter

    .prologue
    .line 715
    add-int/lit8 v0, p1, 0x4

    return v0
.end method

.method public f()Lcom/instagram/android/feed/ui/StickyHeaderListView;
    .locals 1

    .prologue
    .line 239
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->m:Lcom/instagram/android/feed/ui/StickyHeaderListView;

    if-nez v0, :cond_0

    .line 240
    sget v0, Lcom/facebook/aw;->sticky_header_list:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/feed/a/a;->c(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/ui/StickyHeaderListView;

    iput-object v0, p0, Lcom/instagram/android/feed/a/a;->m:Lcom/instagram/android/feed/ui/StickyHeaderListView;

    .line 242
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->m:Lcom/instagram/android/feed/ui/StickyHeaderListView;

    return-object v0
.end method

.method public g()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 297
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->e:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->clear()V

    .line 298
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/h;->a()V

    .line 299
    iput-object v1, p0, Lcom/instagram/android/feed/a/a;->l:Landroid/widget/ListView;

    .line 300
    iput-object v1, p0, Lcom/instagram/android/feed/a/a;->m:Lcom/instagram/android/feed/ui/StickyHeaderListView;

    .line 301
    return-void
.end method

.method public final getCount()I
    .locals 1

    .prologue
    .line 599
    iget v0, p0, Lcom/instagram/android/feed/a/a;->o:I

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 2
    .parameter "position"

    .prologue
    .line 609
    invoke-direct {p0, p1}, Lcom/instagram/android/feed/a/a;->g(I)V

    .line 610
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->getCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_0

    .line 611
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    .line 613
    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/a/a;->d(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/a/g;->a(I)Lcom/instagram/j/l;

    move-result-object v0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 634
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getItemViewType(I)I
    .locals 2
    .parameter "position"

    .prologue
    .line 681
    invoke-direct {p0, p1}, Lcom/instagram/android/feed/a/a;->g(I)V

    .line 682
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->getCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_0

    .line 683
    const/4 v0, 0x2

    .line 693
    :goto_0
    return v0

    .line 685
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->t:Lcom/instagram/android/feed/a/i;

    sget-object v1, Lcom/instagram/android/feed/a/i;->a:Lcom/instagram/android/feed/a/i;

    if-ne v0, v1, :cond_2

    .line 686
    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/a/a;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/l;

    .line 687
    invoke-virtual {v0}, Lcom/instagram/j/l;->ac()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 688
    const/4 v0, 0x3

    goto :goto_0

    .line 690
    :cond_1
    const/4 v0, 0x0

    goto :goto_0

    .line 693
    :cond_2
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 1
    .parameter "position"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 639
    if-nez p2, :cond_0

    .line 640
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->d:Landroid/content/Context;

    invoke-virtual {p0, v0, p1, p3}, Lcom/instagram/android/feed/a/a;->a(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 643
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->d:Landroid/content/Context;

    invoke-virtual {p0, v0, p2, p1}, Lcom/instagram/android/feed/a/a;->a(Landroid/content/Context;Landroid/view/View;I)V

    .line 645
    return-object p2
.end method

.method public getViewTypeCount()I
    .locals 1

    .prologue
    .line 700
    const/4 v0, 0x4

    return v0
.end method

.method public h()V
    .locals 1

    .prologue
    .line 346
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->j:Lcom/instagram/android/feed/a/a/d;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/d;->b()V

    .line 347
    return-void
.end method

.method public hasStableIds()Z
    .locals 1

    .prologue
    .line 676
    const/4 v0, 0x1

    return v0
.end method

.method public i()V
    .locals 6

    .prologue
    const/4 v3, -0x1

    .line 388
    iput v3, p0, Lcom/instagram/android/feed/a/a;->n:I

    .line 391
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->a:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->ac()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 428
    :cond_0
    :goto_0
    return-void

    .line 395
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v2

    .line 397
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v0

    .line 398
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/ListView;->getLastVisiblePosition()I

    move-result v1

    .line 400
    if-ne v1, v3, :cond_2

    .line 402
    iput v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    goto :goto_0

    .line 404
    :cond_2
    invoke-virtual {v2}, Landroid/widget/ListView;->getChildCount()I

    move-result v3

    .line 405
    const/4 v0, 0x0

    move v1, v0

    :goto_1
    if-ge v1, v3, :cond_0

    .line 406
    invoke-virtual {v2, v1}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 407
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v4

    invoke-direct {p0, v4, v0}, Lcom/instagram/android/feed/a/a;->a(Landroid/view/View;Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 408
    invoke-virtual {p0, v2, v1}, Lcom/instagram/android/feed/a/a;->a(Landroid/widget/AbsListView;I)Lcom/instagram/android/widget/ConstrainedProgressImageView;

    move-result-object v4

    .line 409
    if-eqz v4, :cond_3

    .line 410
    sget v0, Lcom/facebook/aw;->key_list_position:I

    invoke-virtual {v4, v0}, Lcom/instagram/android/widget/ConstrainedProgressImageView;->getTag(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    .line 415
    sget v0, Lcom/facebook/aw;->key_media_id:I

    invoke-virtual {v4, v0}, Lcom/instagram/android/widget/ConstrainedProgressImageView;->getTag(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 416
    invoke-static {}, Lcom/instagram/j/u;->a()Lcom/instagram/j/u;

    move-result-object v5

    invoke-virtual {v5, v0}, Lcom/instagram/j/u;->b(Ljava/lang/String;)Lcom/instagram/j/l;

    move-result-object v0

    .line 417
    if-eqz v0, :cond_3

    invoke-virtual {v0}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v5, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v5, :cond_3

    .line 418
    invoke-virtual {v4}, Lcom/instagram/android/widget/ConstrainedProgressImageView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 419
    invoke-virtual {v0}, Landroid/view/ViewGroup;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/a/b/ae;

    .line 421
    invoke-virtual {v0}, Lcom/instagram/android/feed/a/b/ae;->d()Lcom/instagram/creation/video/ui/MediaActionsView;

    move-result-object v0

    sget-object v4, Lcom/instagram/creation/video/ui/g;->d:Lcom/instagram/creation/video/ui/g;

    invoke-virtual {v0, v4}, Lcom/instagram/creation/video/ui/MediaActionsView;->setVideoIconState(Lcom/instagram/creation/video/ui/g;)V

    .line 405
    :cond_3
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1
.end method

.method public isEmpty()Z
    .locals 1

    .prologue
    .line 667
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/g;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->k()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isEnabled(I)Z
    .locals 1
    .parameter "position"

    .prologue
    .line 821
    const/4 v0, 0x0

    return v0
.end method

.method public j()V
    .locals 2

    .prologue
    .line 432
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 433
    return-void
.end method

.method public k()I
    .locals 1

    .prologue
    .line 629
    const/4 v0, 0x0

    return v0
.end method

.method public l()I
    .locals 1

    .prologue
    .line 662
    iget v0, p0, Lcom/instagram/android/feed/a/a;->w:I

    return v0
.end method

.method public m()Z
    .locals 1

    .prologue
    .line 671
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/g;->e()Z

    move-result v0

    return v0
.end method

.method public n()Z
    .locals 1

    .prologue
    .line 794
    iget-boolean v0, p0, Lcom/instagram/android/feed/a/a;->p:Z

    return v0
.end method

.method public notifyDataSetChanged()V
    .locals 2

    .prologue
    const/4 v1, 0x2

    .line 579
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/g;->a()V

    .line 580
    invoke-direct {p0}, Lcom/instagram/android/feed/a/a;->u()V

    .line 581
    invoke-super {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    .line 582
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/feed/a/a;->p:Z

    .line 583
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 584
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 585
    return-void
.end method

.method public notifyDataSetInvalidated()V
    .locals 2

    .prologue
    const/4 v1, 0x2

    .line 589
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/g;->a()V

    .line 590
    invoke-direct {p0}, Lcom/instagram/android/feed/a/a;->u()V

    .line 591
    invoke-super {p0}, Landroid/widget/BaseAdapter;->notifyDataSetInvalidated()V

    .line 592
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/feed/a/a;->p:Z

    .line 593
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 594
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 595
    return-void
.end method

.method public o()Lcom/instagram/android/feed/a/i;
    .locals 1

    .prologue
    .line 798
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->t:Lcom/instagram/android/feed/a/i;

    return-object v0
.end method

.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 5
    .parameter "view"
    .parameter "firstVisibleItem"
    .parameter "visibleItemCount"
    .parameter "totalItemCount"

    .prologue
    .line 353
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->j:Lcom/instagram/android/feed/a/a/d;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/d;->a()V

    .line 354
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/instagram/android/feed/a/a/h;->onScroll(Landroid/widget/AbsListView;III)V

    .line 355
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->i:Lcom/instagram/android/feed/a/a/a;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/instagram/android/feed/a/a/a;->onScroll(Landroid/widget/AbsListView;III)V

    .line 358
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->a()Z

    move-result v0

    if-nez v0, :cond_0

    if-lez p3, :cond_0

    .line 359
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->b()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/instagram/android/feed/a/a;->b(I)Landroid/view/View;

    move-result-object v0

    .line 360
    if-nez v0, :cond_2

    .line 362
    invoke-static {}, Lcom/instagram/creation/video/c/b;->a()Z

    move-result v0

    if-nez v0, :cond_0

    .line 363
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->e()V

    .line 379
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->f()Lcom/instagram/android/feed/ui/StickyHeaderListView;

    move-result-object v0

    .line 380
    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->n()Z

    move-result v1

    if-nez v1, :cond_1

    .line 383
    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/instagram/android/feed/ui/StickyHeaderListView;->onScroll(Landroid/widget/AbsListView;III)V

    .line 385
    :cond_1
    return-void

    .line 366
    :cond_2
    sget v1, Lcom/facebook/aw;->media_group:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    .line 369
    invoke-virtual {v1}, Landroid/view/View;->getBottom()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v3

    add-int/2addr v2, v3

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v3

    sub-int/2addr v2, v3

    .line 370
    invoke-virtual {p1}, Landroid/widget/AbsListView;->getHeight()I

    move-result v3

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v4

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v0

    add-int/2addr v0, v4

    sub-int v0, v3, v0

    .line 371
    invoke-static {v2, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    .line 372
    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    int-to-double v1, v1

    const-wide v3, 0x3fd3333333333333L

    mul-double/2addr v1, v3

    double-to-int v1, v1

    .line 373
    if-ge v0, v1, :cond_0

    .line 374
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->e()V

    goto :goto_0
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 5
    .parameter "view"
    .parameter "scrollState"

    .prologue
    const/4 v4, 0x1

    const/4 v3, -0x1

    .line 305
    iput p2, p0, Lcom/instagram/android/feed/a/a;->w:I

    .line 307
    invoke-direct {p0}, Lcom/instagram/android/feed/a/a;->s()V

    .line 309
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->o()Lcom/instagram/android/feed/a/i;

    move-result-object v0

    sget-object v1, Lcom/instagram/android/feed/a/i;->a:Lcom/instagram/android/feed/a/i;

    if-ne v0, v1, :cond_0

    .line 310
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->h:Lcom/instagram/android/feed/a/a/h;

    invoke-virtual {v0, p1, p2}, Lcom/instagram/android/feed/a/a/h;->onScrollStateChanged(Landroid/widget/AbsListView;I)V

    .line 311
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->g:Lcom/instagram/android/feed/a/a/g;

    invoke-virtual {v0, p1, p2}, Lcom/instagram/android/feed/a/a/g;->a(Landroid/widget/AbsListView;I)V

    .line 314
    :cond_0
    if-nez p2, :cond_3

    .line 315
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    const-wide/16 v1, 0xc8

    invoke-virtual {v0, v4, v1, v2}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 321
    :goto_0
    iget v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    if-eq v0, v3, :cond_2

    iget v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v1

    if-lt v0, v1, :cond_1

    iget v0, p0, Lcom/instagram/android/feed/a/a;->n:I

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a;->e()Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/ListView;->getLastVisiblePosition()I

    move-result v1

    if-le v0, v1, :cond_2

    .line 324
    :cond_1
    iput v3, p0, Lcom/instagram/android/feed/a/a;->n:I

    .line 326
    :cond_2
    return-void

    .line 317
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->x:Landroid/os/Handler;

    invoke-virtual {v0, v4}, Landroid/os/Handler;->removeMessages(I)V

    goto :goto_0
.end method

.method public p()I
    .locals 1

    .prologue
    .line 874
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->q:Lcom/instagram/android/feed/a/g;

    invoke-static {v0}, Lcom/instagram/android/feed/a/g;->b(Lcom/instagram/android/feed/a/g;)I

    move-result v0

    return v0
.end method

.method public q()V
    .locals 1

    .prologue
    .line 878
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->f()V

    .line 879
    return-void
.end method

.method public r()Z
    .locals 1

    .prologue
    .line 1034
    iget-object v0, p0, Lcom/instagram/android/feed/a/a;->k:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->a()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
